package com.paic.custserv.web.controller;

import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@RequestMapping("/common")
@Controller
public class CommonController {
	
	@RequestMapping(value="/intoCussWorkOrderMain.do", method = RequestMethod.GET)
	public ModelAndView intoCussWorkOrderMain(HttpServletRequest request){
		return new ModelAndView("executive/workOrderList");		
	}
	
	/**
     * 根据用户角色来决定默认的展现页面.
     * @return String
     */
    @RequestMapping(value = "/home", method = RequestMethod.GET)
    public ModelAndView home(HttpServletRequest request) {
    	return new ModelAndView("/home");
    }
}
